import request, { requestHis } from "@/utils/request";

// 查询排班科室
export const queryScheduleDepts = (data) =>
  requestHis(`/queryScheduleDepts`, { method: "post", data });

// export const InsertPatInfo = (data) =>
//   requestHis(`/InsertPatInfo`, {
//     method: "post",
//     data: { userCode: "weixin", ...data },
//   });

// 查询排班信息
export const queryScheduleInfo = (data) =>
  requestHis(`/queryScheduleInfo`, { method: "post", data });

// 查询排班分时信息
export const queryScheduleTimeInfo = (data) =>
  requestHis(`/queryScheduleTimeInfo`, { method: "post", data });

// 查询排班分时信息
export const queryAutoRcptNo = (data) =>
  requestHis(`/queryAutoRcptNo`, { method: "post", data });

// 挂号结算
export const payClinicReg = (data) =>
  requestHis(`/payClinicReg`, { method: "post", data });

// 门诊号源锁定
export const lockScheduleTime = (data) =>
  requestHis(`/lockScheduleTime`, { method: "post", data });

// 门诊号源解锁
export const unlockScheduleTime = (data) =>
  requestHis(`/unlockScheduleTime`, { method: "post", data });

// 预约挂号登记
// 用于门诊预约挂号登记（只登记不收费，到医院取号后收费）；
export const clinicAppointReg = (data) =>
  requestHis(`/clinicAppointReg`, { method: "post", data });

// 查询挂号信息
export const queryOutpReg = (data) =>
  requestHis(`/queryOutpReg`, { method: "post", backAll: true, data });
